package com.huidao.dao;

import java.sql.Connection;
import java.util.List;

import com.huidao.entity.Order;

public interface OrderDao {
	
	public boolean addOrder(Connection conn,Order order);
	
	public List<Order> getOrderByBuyer(int startnum,int pageSize,long userId);
	
	public int getTotalCountByBuyer(long userId);
	
	public boolean updateOrderState(long orderId,int state);
	
	public List<Order> getOrderBySeller(int startnum,int pageSize,long userId);
	
	public int getTotalCountBySeller(long userId);
}
